package online.longzipeng.householdbillssystem.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzp
 * @since 2021-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permiss extends Model<Permiss> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifiedTime;

    /**
     * 版本
     */
    @Version
    private Integer version;

    /**
     * 权限名称
     */
    private String name;

    /**
     * 权限码
     */
    private String code;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
